package com.kuaidu.ll.quickreadnews.base;

import rx.Subscriber;

/**
 * Created by liulei on 2017/7/19.
 */
public abstract class BaseSubscriber<T> extends Subscriber<T> {

    @Override
    public void onStart() {
        super.onStart();
    }

    @Override
    public void onNext(T t) {
        onSucceed(t);
    }

    @Override
    public void onError(Throwable e) {
        onFail(e);
    }

    @Override
    public void onCompleted() {
        onFinish();

    }


    public abstract void onSucceed(T t);

    public abstract void onFail(Throwable e);

    public abstract void onFinish();
}
